package com.utils;

/**
 * 封装响应的信息
 * @author 张孜
 * @Date  2020-8-11
 * @version  1.0
 *
 */
public  class JsonResult {
	
	private String code;//响应状态码
	private Object info;//数据
	private String message;//本次请求是否成功
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Object getInfo() {
		return info;
	}
	public void setInfo(Object info) {
		this.info = info;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	@Override
	public String toString() {
		return "jsonResult [code=" + code + ", info=" + info + ", message=" + message + "]";
	}
	public JsonResult(String code, String message, Object info) {
		super();
		this.code = code;
		this.info = info;
		this.message = message;
	}
	public JsonResult() {
		// TODO Auto-generated constructor stub
	}
	
	
	
}
